<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
            background-image: url(../images/desktop_1.jpg) no-repeat top 
        }
    </style>
</head>
<body>
    <script>
        // console.log(document.body)
        function getRandom (n,m){
            return Math.floor(Math.random()*(m-n+1))+n
        }  
        const random = getRandom(1,10)
        document.body.style.backgroundImage = `url(../images/desktop_${random}.jpg)`
    </script>
</body>
</html>